home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / QD32Exists.c < prev    next >
MacBinary  |  1993-03-14  |  3.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Mar 14 14:55:29 1993, modified Sun Mar 14 14:55:29 1993, creator Think C, type ASCII, 2904 bytes "QD32Exists.c" , at 0xbd8 510 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 51 44 33 32 45 78 | 69 73 74 73 2e 63 00 00 |..QD32Ex|ists.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0b 58 00 | 00 01 fe a7 c9 3e 31 a7 |......X.|.....>1.|
|00000060| c9 3e 31 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.>1.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 07 6f 00 00 |........|.....o..|
|00000080| 2f 2a 20 51 44 33 32 45 | 78 69 73 74 73 2e 63 0d |/* QD32E|xists.c.|
|00000090| 41 70 70 6c 65 20 73 75 | 67 67 65 73 74 73 2c 20 |Apple su|ggests, |
|000000a0| 61 6e 64 20 49 20 61 67 | 72 65 65 2c 20 74 68 61 |and I ag|ree, tha|
|000000b0| 74 20 61 6c 6c 20 6e 65 | 77 20 70 72 6f 67 72 61 |t all ne|w progra|
|000000c0| 6d 73 20 73 68 6f 75 6c | 64 20 75 73 65 20 74 68 |ms shoul|d use th|
|000000d0| 65 20 6e 65 77 20 47 65 | 73 74 61 6c 74 0d 6d 61 |e new Ge|stalt.ma|
|000000e0| 6e 61 67 65 72 2c 20 74 | 68 61 74 20 69 73 20 64 |nager, t|hat is d|
|000000f0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 49 6e 73 |ocumente|d in Ins|
|00000100| 69 64 65 20 4d 61 63 20 | 56 49 2e 20 49 74 27 73 |ide Mac |VI. It's|
|00000110| 20 76 65 72 79 20 65 61 | 73 79 20 74 6f 20 75 73 | very ea|sy to us|
|00000120| 65 2c 20 61 73 0d 69 6c | 6c 75 73 74 72 61 74 65 |e, as.il|lustrate|
|00000130| 64 20 62 65 6c 6f 77 2e | 0d 0d 54 68 65 20 6f 6e |d below.|..The on|
|00000140| 6c 79 20 73 75 62 74 6c | 65 74 79 20 69 6e 20 74 |ly subtl|ety in t|
|00000150| 68 65 20 63 6f 64 65 20 | 62 65 6c 6f 77 20 69 73 |he code |below is|
|00000160| 20 74 68 61 74 20 69 66 | 20 47 65 73 74 61 6c 74 | that if| Gestalt|
|00000170| 28 29 20 69 73 20 4e 4f | 54 20 70 72 65 73 65 6e |() is NO|T presen|
|00000180| 74 2d 2d 62 65 63 61 75 | 73 65 0d 74 68 65 20 70 |t--becau|se.the p|
|00000190| 72 6f 67 72 61 6d 20 69 | 73 20 62 65 69 6e 67 20 |rogram i|s being |
|000001a0| 72 75 6e 20 75 6e 64 65 | 72 20 61 20 53 79 73 74 |run unde|r a Syst|
|000001b0| 65 6d 20 62 65 66 6f 72 | 65 20 36 2e 30 34 2d 2d |em befor|e 6.04--|
|000001c0| 74 68 65 6e 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |then the| compile|
|000001d0| 72 27 73 20 67 6c 75 65 | 0d 63 6f 64 65 20 69 73 |r's glue|.code is|
|000001e0| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 63 61 75 | suppose|d to cau|
|000001f0| 73 65 20 47 65 73 74 61 | 6c 74 28 29 20 74 6f 20 |se Gesta|lt() to |
|00000200| 72 65 74 75 72 6e 20 77 | 69 74 68 20 61 6e 20 65 |return w|ith an e|
|00000210| 72 72 6f 72 20 63 6f 64 | 65 2c 20 72 61 74 68 65 |rror cod|e, rathe|
|00000220| 72 20 74 68 61 6e 0d 63 | 72 61 73 68 20 62 65 63 |r than.c|rash bec|
|00000230| 61 75 73 65 20 6f 66 20 | 61 20 6d 69 73 73 69 6e |ause of |a missin|
|00000240| 67 20 74 72 61 70 2e 20 | 53 61 6d 65 20 67 6f 65 |g trap. |Same goe|
|00000250| 73 20 66 6f 72 20 74 68 | 65 20 63 61 6c 6c 20 74 |s for th|e call t|
|00000260| 6f 20 53 79 73 45 6e 76 | 69 72 6f 6e 73 28 29 2c |o SysEnv|irons(),|
|00000270| 20 77 68 69 63 68 0d 73 | 68 6f 75 6c 64 20 62 65 | which.s|hould be|
|00000280| 20 70 72 65 73 65 6e 74 | 20 6f 6e 20 61 6c 6c 20 | present| on all |
|00000290| 53 79 73 74 65 6d 73 20 | 61 66 74 65 72 20 34 2e |Systems |after 4.|
|000002a0| 31 2e 0d 0d 54 68 65 20 | 61 6e 73 77 65 72 73 20 |1...The |answers |
|000002b0| 61 72 65 20 63 61 63 68 | 65 64 2c 20 73 6f 20 73 |are cach|ed, so s|
|000002c0| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|000002d0| 61 66 74 65 72 20 74 68 | 65 20 66 69 72 73 74 20 |after th|e first |
|000002e0| 77 69 6c 6c 20 62 65 20 | 71 75 69 63 6b 2e 0d 0d |will be |quick...|
|000002f0| 48 49 53 54 4f 52 59 3a | 0d 34 2f 32 31 2f 39 30 |HISTORY:|.4/21/90|
|00000300| 09 64 67 70 09 61 64 64 | 65 64 20 73 74 61 74 69 |.dgp.add|ed stati|
|00000310| 63 73 20 74 6f 20 61 76 | 6f 69 64 20 77 61 73 74 |cs to av|oid wast|
|00000320| 69 6e 67 20 74 69 6d 65 | 20 72 65 63 6f 6d 70 75 |ing time| recompu|
|00000330| 74 69 6e 67 20 74 68 69 | 73 2e 0d 32 2f 32 37 2f |ting thi|s..2/27/|
|00000340| 39 31 20 64 67 70 09 61 | 64 64 65 64 20 51 44 38 |91 dgp.a|dded QD8|
|00000350| 45 78 69 73 74 73 28 29 | 2e 0d 34 2f 31 35 2f 39 |Exists()|..4/15/9|
|00000360| 31 20 64 67 70 09 61 64 | 64 65 64 20 4e 65 77 50 |1 dgp.ad|ded NewP|
|00000370| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 28 29 20 |aletteMa|nager() |
|00000380| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 65 |to deter|mine whe|
|00000390| 74 68 65 72 20 74 68 65 | 20 63 61 6c 6c 73 20 64 |ther the| calls d|
|000003a0| 6f 63 75 6d 65 6e 74 65 | 64 0d 09 09 09 69 6e 20 |ocumente|d....in |
|000003b0| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|000003c0| 67 65 72 20 63 68 61 70 | 74 65 72 20 6f 66 20 49 |ger chap|ter of I|
|000003d0| 6e 73 69 64 65 20 4d 61 | 63 20 56 49 20 61 72 65 |nside Ma|c VI are|
|000003e0| 20 61 76 61 69 6c 61 62 | 6c 65 2e 0d 38 2f 32 34 | availab|le..8/24|
|000003f0| 2f 39 31 09 64 67 70 09 | 4d 61 64 65 20 63 6f 6d |/91.dgp.|Made com|
|00000400| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 54 48 49 |patible |with THI|
|00000410| 4e 4b 20 43 20 35 2e 30 | 2e 0d 33 2f 32 37 2f 39 |NK C 5.0|..3/27/9|
|00000420| 32 09 64 67 70 09 55 73 | 65 20 47 65 73 74 61 6c |2.dgp.Us|e Gestal|
|00000430| 74 28 29 20 69 6e 73 74 | 65 61 64 20 6f 66 20 53 |t() inst|ead of S|
|00000440| 79 73 45 6e 76 69 72 6f | 6e 73 28 29 2c 20 61 73 |ysEnviro|ns(), as|
|00000450| 20 72 65 63 6f 6d 6d 65 | 6e 64 65 64 20 62 79 20 | recomme|nded by |
|00000460| 41 70 70 6c 65 2e 20 0d | 39 2f 31 35 2f 39 32 20 |Apple. .|9/15/92 |
|00000470| 64 67 70 20 43 68 61 6e | 67 65 64 20 4e 65 77 50 |dgp Chan|ged NewP|
|00000480| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 28 29 20 |aletteMa|nager() |
|00000490| 74 6f 20 63 68 65 63 6b | 20 6f 6e 6c 79 20 74 68 |to check| only th|
|000004a0| 65 20 73 79 73 74 65 6d | 20 76 65 72 73 69 6f 6e |e system| version|
|000004b0| 2e 20 41 70 70 6c 65 0d | 09 09 09 64 6f 63 75 6d |. Apple.|...docum|
|000004c0| 65 6e 74 73 20 68 61 64 | 20 69 6e 64 69 63 61 74 |ents had| indicat|
|000004d0| 65 64 20 74 6f 20 6d 65 | 20 74 68 61 74 20 74 68 |ed to me| that th|
|000004e0| 65 20 6e 65 77 20 70 61 | 6c 65 74 74 65 20 6d 61 |e new pa|lette ma|
|000004f0| 6e 61 67 65 72 20 63 61 | 6c 6c 73 0d 09 09 09 77 |nager ca|lls....w|
|00000500| 6f 75 6c 64 20 62 65 20 | 61 76 61 69 6c 61 62 6c |ould be |availabl|
|00000510| 65 20 69 6e 20 61 6e 79 | 20 73 79 73 74 65 6d 20 |e in any| system |
|00000520| 69 66 20 51 44 33 32 20 | 77 65 72 65 20 70 72 65 |if QD32 |were pre|
|00000530| 73 65 6e 74 2c 20 73 6f | 20 49 20 68 61 64 0d 09 |sent, so| I had..|
|00000540| 09 09 4f 52 65 64 20 74 | 68 61 74 20 69 6e 2e 20 |..ORed t|hat in. |
|00000550| 48 6f 77 65 76 65 72 2c | 20 49 20 66 69 6e 64 20 |However,| I find |
|00000560| 74 68 61 74 20 74 68 65 | 20 48 61 73 44 65 70 74 |that the| HasDept|
|00000570| 68 28 29 20 63 61 6c 6c | 20 66 61 69 6c 73 20 6f |h() call| fails o|
|00000580| 6e 0d 09 09 09 6d 79 20 | 4d 61 63 20 49 49 63 69 |n....my |Mac IIci|
|00000590| 20 28 77 68 69 63 68 20 | 68 61 73 20 51 44 33 32 | (which |has QD32|
|000005a0| 20 69 6e 20 52 4f 4d 29 | 20 75 6e 64 65 72 20 53 | in ROM)| under S|
|000005b0| 79 73 74 65 6d 20 36 2e | 30 34 2e 20 53 6f 20 74 |ystem 6.|04. So t|
|000005c0| 68 65 20 6e 65 77 0d 09 | 09 09 74 65 73 74 20 69 |he new..|..test i|
|000005d0| 73 20 73 6c 69 67 68 74 | 6c 79 20 6d 6f 72 65 20 |s slight|ly more |
|000005e0| 63 6f 6e 73 65 72 76 61 | 74 69 76 65 20 74 68 61 |conserva|tive tha|
|000005f0| 6e 20 74 68 65 20 66 6f | 72 6d 65 72 2e 0d 2a 2f |n the fo|rmer..*/|
|00000600| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 56 69 64 65 |..#inclu|de "Vide|
|00000610| 6f 54 6f 6f 6c 42 6f 78 | 2e 68 22 0d 73 74 61 74 |oToolBox|.h".stat|
|00000620| 69 63 20 76 6f 69 64 20 | 45 78 69 73 74 73 28 76 |ic void |Exists(v|
|00000630| 6f 69 64 29 3b 09 09 2f | 2a 20 49 6e 74 65 72 6e |oid);../|* Intern|
|00000640| 61 6c 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 64 6f |al routi|ne to do|
|00000650| 20 74 68 65 20 77 6f 72 | 6b 2c 20 6f 6e 63 65 2e | the wor|k, once.|
|00000660| 20 20 2a 2f 0d 73 74 61 | 74 69 63 20 76 6f 69 64 | */.sta|tic void|
|00000670| 20 4f 6c 64 45 78 69 73 | 74 73 28 76 6f 69 64 29 | OldExis|ts(void)|
|00000680| 3b 09 2f 2a 20 48 61 6e | 64 6c 65 20 53 79 73 74 |;./* Han|dle Syst|
|00000690| 65 6d 73 20 34 2e 31 20 | 74 6f 20 36 2e 30 33 20 |ems 4.1 |to 6.03 |
|000006a0| 20 2a 2f 0d 0d 73 74 61 | 74 69 63 20 42 6f 6f 6c | */..sta|tic Bool|
|000006b0| 65 61 6e 20 66 69 72 73 | 74 54 69 6d 65 3d 31 2c |ean firs|tTime=1,|
|000006c0| 71 44 38 45 78 69 73 74 | 73 3d 30 2c 71 44 33 32 |qD8Exist|s=0,qD32|
|000006d0| 45 78 69 73 74 73 3d 30 | 2c 6e 65 77 50 61 6c 65 |Exists=0|,newPale|
|000006e0| 74 74 65 4d 61 6e 61 67 | 65 72 3d 30 3b 0d 0d 42 |tteManag|er=0;..B|
|000006f0| 6f 6f 6c 65 61 6e 20 51 | 44 33 32 45 78 69 73 74 |oolean Q|D32Exist|
|00000700| 73 28 76 6f 69 64 29 09 | 09 2f 2a 20 44 6f 65 73 |s(void).|./* Does|
|00000710| 20 33 32 2d 62 69 74 20 | 71 75 69 63 6b 64 72 61 | 32-bit |quickdra|
|00000720| 77 20 65 78 69 73 74 3f | 20 2a 2f 0d 7b 0d 09 69 |w exist?| */.{..i|
|00000730| 66 28 66 69 72 73 74 54 | 69 6d 65 29 45 78 69 73 |f(firstT|ime)Exis|
|00000740| 74 73 28 29 3b 0d 09 72 | 65 74 75 72 6e 20 71 44 |ts();..r|eturn qD|
|00000750| 33 32 45 78 69 73 74 73 | 3b 0d 7d 0d 0d 42 6f 6f |32Exists|;.}..Boo|
|00000760| 6c 65 61 6e 20 51 44 38 | 45 78 69 73 74 73 28 76 |lean QD8|Exists(v|
|00000770| 6f 69 64 29 09 09 09 2f | 2a 20 44 6f 65 73 20 63 |oid).../|* Does c|
|00000780| 6f 6c 6f 72 20 71 75 69 | 63 6b 64 72 61 77 20 65 |olor qui|ckdraw e|
|00000790| 78 69 73 74 3f 20 2a 2f | 0d 7b 0d 09 69 66 28 66 |xist? */|.{..if(f|
|000007a0| 69 72 73 74 54 69 6d 65 | 29 45 78 69 73 74 73 28 |irstTime|)Exists(|
|000007b0| 29 3b 0d 09 72 65 74 75 | 72 6e 20 71 44 38 45 78 |);..retu|rn qD8Ex|
|000007c0| 69 73 74 73 3b 0d 7d 0d | 0d 42 6f 6f 6c 65 61 6e |ists;.}.|.Boolean|
|000007d0| 20 4e 65 77 50 61 6c 65 | 74 74 65 4d 61 6e 61 67 | NewPale|tteManag|
|000007e0| 65 72 28 76 6f 69 64 29 | 09 2f 2a 20 44 6f 65 73 |er(void)|./* Does|
|000007f0| 20 69 74 20 65 78 69 73 | 74 3f 20 2a 2f 0d 7b 0d | it exis|t? */.{.|
|00000800| 09 69 66 28 66 69 72 73 | 74 54 69 6d 65 29 45 78 |.if(firs|tTime)Ex|
|00000810| 69 73 74 73 28 29 3b 0d | 09 72 65 74 75 72 6e 20 |ists();.|.return |
|00000820| 6e 65 77 50 61 6c 65 74 | 74 65 4d 61 6e 61 67 65 |newPalet|teManage|
|00000830| 72 3b 0d 7d 0d 0d 73 74 | 61 74 69 63 20 76 6f 69 |r;.}..st|atic voi|
|00000840| 64 20 45 78 69 73 74 73 | 28 76 6f 69 64 29 09 09 |d Exists|(void)..|
|00000850| 2f 2a 20 49 6e 74 65 72 | 6e 61 6c 20 72 6f 75 74 |/* Inter|nal rout|
|00000860| 69 6e 65 20 74 6f 20 64 | 6f 20 74 68 65 20 77 6f |ine to d|o the wo|
|00000870| 72 6b 2c 20 6f 6e 63 65 | 2e 20 20 2a 2f 0d 7b 0d |rk, once|. */.{.|
|00000880| 09 4f 53 45 72 72 20 65 | 72 72 6f 72 3b 0d 09 6c |.OSErr e|rror;..l|
|00000890| 6f 6e 67 20 76 65 72 73 | 69 6f 6e 3b 0d 0d 09 66 |ong vers|ion;...f|
|000008a0| 69 72 73 74 54 69 6d 65 | 3d 30 3b 0d 09 65 72 72 |irstTime|=0;..err|
|000008b0| 6f 72 3d 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |or=Gesta|lt(gesta|
|000008c0| 6c 74 56 65 72 73 69 6f | 6e 2c 26 76 65 72 73 69 |ltVersio|n,&versi|
|000008d0| 6f 6e 29 3b 09 2f 2a 20 | 49 73 20 47 65 73 74 61 |on);./* |Is Gesta|
|000008e0| 6c 74 20 61 76 61 69 6c | 61 62 6c 65 3f 20 2a 2f |lt avail|able? */|
|000008f0| 0d 09 69 66 28 65 72 72 | 6f 72 29 7b 0d 09 09 4f |..if(err|or){...O|
|00000900| 6c 64 45 78 69 73 74 73 | 28 29 3b 09 09 09 09 09 |ldExists|();.....|
|00000910| 09 2f 2a 20 4e 6f 2e 20 | 54 72 79 20 53 79 73 45 |./* No. |Try SysE|
|00000920| 6e 76 69 72 6f 6e 73 28 | 29 2e 20 2a 2f 0d 09 09 |nvirons(|). */...|
|00000930| 72 65 74 75 72 6e 3b 0d | 09 7d 0d 09 47 65 73 74 |return;.|.}..Gest|
|00000940| 61 6c 74 28 67 65 73 74 | 61 6c 74 51 75 69 63 6b |alt(gest|altQuick|
|00000950| 64 72 61 77 56 65 72 73 | 69 6f 6e 2c 26 76 65 72 |drawVers|ion,&ver|
|00000960| 73 69 6f 6e 29 3b 0d 09 | 71 44 38 45 78 69 73 74 |sion);..|qD8Exist|
|00000970| 73 20 3d 20 76 65 72 73 | 69 6f 6e 3e 3d 67 65 73 |s = vers|ion>=ges|
|00000980| 74 61 6c 74 38 42 69 74 | 51 44 3b 0d 09 71 44 33 |talt8Bit|QD;..qD3|
|00000990| 32 45 78 69 73 74 73 20 | 3d 20 76 65 72 73 69 6f |2Exists |= versio|
|000009a0| 6e 3e 3d 67 65 73 74 61 | 6c 74 33 32 42 69 74 51 |n>=gesta|lt32BitQ|
|000009b0| 44 3b 0d 09 47 65 73 74 | 61 6c 74 28 67 65 73 74 |D;..Gest|alt(gest|
|000009c0| 61 6c 74 53 79 73 74 65 | 6d 56 65 72 73 69 6f 6e |altSyste|mVersion|
|000009d0| 2c 26 76 65 72 73 69 6f | 6e 29 3b 0d 09 6e 65 77 |,&versio|n);..new|
|000009e0| 50 61 6c 65 74 74 65 4d | 61 6e 61 67 65 72 20 3d |PaletteM|anager =|
|000009f0| 20 76 65 72 73 69 6f 6e | 3e 3d 30 78 36 30 35 3b | version|>=0x605;|
|00000a00| 0d 7d 0d 0d 23 64 65 66 | 69 6e 65 20 6d 69 73 73 |.}..#def|ine miss|
|00000a10| 69 6e 67 54 72 61 70 20 | 30 78 41 38 39 46 0d 23 |ingTrap |0xA89F.#|
|00000a20| 64 65 66 69 6e 65 20 51 | 44 33 32 54 72 61 70 09 |define Q|D32Trap.|
|00000a30| 30 78 41 42 30 33 0d 0d | 73 74 61 74 69 63 20 76 |0xAB03..|static v|
|00000a40| 6f 69 64 20 4f 6c 64 45 | 78 69 73 74 73 28 76 6f |oid OldE|xists(vo|
|00000a50| 69 64 29 09 2f 2a 20 48 | 61 6e 64 6c 65 20 53 79 |id)./* H|andle Sy|
|00000a60| 73 74 65 6d 73 20 34 2e | 31 20 74 6f 20 36 2e 30 |stems 4.|1 to 6.0|
|00000a70| 33 20 20 2a 2f 0d 7b 0d | 09 4f 53 45 72 72 20 65 |3 */.{.|.OSErr e|
|00000a80| 72 72 6f 72 3b 0d 09 53 | 79 73 45 6e 76 52 65 63 |rror;..S|ysEnvRec|
|00000a90| 20 74 68 65 57 6f 72 6c | 64 3b 0d 09 0d 09 66 69 | theWorl|d;....fi|
|00000aa0| 72 73 74 54 69 6d 65 3d | 30 3b 0d 09 65 72 72 6f |rstTime=|0;..erro|
|00000ab0| 72 3d 53 79 73 45 6e 76 | 69 72 6f 6e 73 28 31 2c |r=SysEnv|irons(1,|
|00000ac0| 26 74 68 65 57 6f 72 6c | 64 29 3b 09 09 2f 2a 20 |&theWorl|d);../* |
|00000ad0| 49 73 20 53 79 73 45 6e | 76 69 72 6f 6e 73 20 61 |Is SysEn|virons a|
|00000ae0| 76 61 69 6c 61 62 6c 65 | 3f 20 2a 2f 0d 09 69 66 |vailable|? */..if|
|00000af0| 28 65 72 72 6f 72 29 72 | 65 74 75 72 6e 3b 09 09 |(error)r|eturn;..|
|00000b00| 09 09 09 2f 2a 20 4e 6f | 2e 20 2a 2f 0d 09 71 44 |.../* No|. */..qD|
|00000b10| 38 45 78 69 73 74 73 3d | 74 68 65 57 6f 72 6c 64 |8Exists=|theWorld|
|00000b20| 2e 68 61 73 43 6f 6c 6f | 72 51 44 3b 0d 09 69 66 |.hasColo|rQD;..if|
|00000b30| 28 71 44 38 45 78 69 73 | 74 73 29 7b 0d 09 09 69 |(qD8Exis|ts){...i|
|00000b40| 66 28 4e 47 65 74 54 72 | 61 70 41 64 64 72 65 73 |f(NGetTr|apAddres|
|00000b50| 73 28 51 44 33 32 54 72 | 61 70 2c 54 6f 6f 6c 54 |s(QD32Tr|ap,ToolT|
|00000b60| 72 61 70 29 20 21 3d 20 | 4e 47 65 74 54 72 61 70 |rap) != |NGetTrap|
|00000b70| 41 64 64 72 65 73 73 28 | 6d 69 73 73 69 6e 67 54 |Address(|missingT|
|00000b80| 72 61 70 2c 54 6f 6f 6c | 54 72 61 70 29 29 0d 09 |rap,Tool|Trap))..|
|00000b90| 09 09 71 44 33 32 45 78 | 69 73 74 73 3d 31 3b 0d |..qD32Ex|ists=1;.|
|00000ba0| 09 09 6e 65 77 50 61 6c | 65 74 74 65 4d 61 6e 61 |..newPal|etteMana|
|00000bb0| 67 65 72 3d 74 68 65 57 | 6f 72 6c 64 2e 73 79 73 |ger=theW|orld.sys|
|00000bc0| 74 65 6d 56 65 72 73 69 | 6f 6e 3e 3d 30 78 36 30 |temVersi|on>=0x60|
|00000bd0| 35 3b 0d 09 7d 0d 7d 0d | 00 00 00 00 00 00 00 00 |5;..}.}.|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 01 00 00 00 01 b4 | 00 00 00 b4 00 00 00 4a |........|.......J|
|00000c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c30| 0c 51 44 33 32 45 78 69 | 73 74 73 2e 63 69 02 00 |.QD32Exi|sts.ci..|
|00000c40| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000c50| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 a7 e5 d5 c5 00 00 | 00 00 00 00 01 fe 65 72 |........|......er|
|00000c80| 66 61 63 65 20 74 6f 20 | 74 68 65 20 4d 61 63 69 |face to |the Maci|
|00000c90| 6e 74 6f 73 68 20 4c 69 | 62 72 61 72 69 65 73 0d |ntosh Li|braries.|
|00000ca0| 0d 0d 09 43 6f 70 79 72 | 69 67 68 74 20 41 70 70 |...Copyr|ight App|
|00000cb0| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000cc0| 2e 09 31 39 38 37 2d 31 | 39 38 39 0d 09 41 6c 6c |..1987-1|989..All|
|00000cd0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00000ce0| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00000cf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 14 |...H..Mo|naco....|
|00000d10| 02 80 00 02 00 00 00 00 | 00 00 00 48 00 00 00 48 |........|...H...H|
|00000d20| 00 00 00 00 00 01 00 06 | 00 04 00 50 00 20 01 8d |........|...P. ..|
|00000d30| 02 3d 00 50 00 20 01 8d | 02 3d a7 ac 92 73 00 00 |.=.P. ..|.=...s..|
|00000d40| 02 71 00 00 02 71 00 00 | 00 00 01 00 00 00 00 1e |.q...q..|........|
|00000d50| 00 50 00 20 01 8d 02 3d | 00 50 00 20 01 8d 02 3d |.P. ...=|.P. ...=|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 42 00 03 00 00 07 51 | 00 00 07 62 11 4e 65 77 |.B.....Q|...b.New|
|00000d80| 50 61 6c 65 74 74 65 4d | 61 6e 61 67 65 72 00 00 |PaletteM|anager..|
|00000d90| 06 6f 00 00 06 6f 0b 51 | 44 33 32 45 78 69 73 74 |.o...o.Q|D32Exist|
|00000da0| 73 00 00 00 06 e5 00 00 | 06 ee 09 51 44 38 45 78 |s.......|...QD8Ex|
|00000db0| 69 73 74 73 00 00 01 00 | 00 00 01 b4 00 00 00 b4 |ists....|........|
|00000dc0| 00 00 00 4a 00 4e 89 48 | 14 34 00 00 00 1c 00 4a |...J.N.H|.4.....J|
|00000dd0| 00 00 4d 50 53 52 00 02 | 00 0a 03 ed ff ff 00 00 |..MPSR..|........|
|00000de0| 00 00 00 00 00 00 03 f0 | ff ff 00 00 00 4c 00 00 |........|.....L..|
|00000df0| 00 00 03 ef ff ff 00 00 | 00 6e 00 00 00 00 00 00 |........|.n......|
+--------+-------------------------+-------------------------+--------+--------+